import { BasicColumn, FormSchema } from '@/components/Table';

export const auditTableColumns: BasicColumn[] = [
  {
    title: 'ID',
    dataIndex: 'id',
  },
  {
    title: 'MAC地址',
    dataIndex: 'mac',
  },
  {
    title: '版本号',
    dataIndex: 'version',
  },
  {
    title: '包名',
    dataIndex: 'package',
  },
  {
    title: '设备品牌',
    dataIndex: 'version',
  },
  {
    title: '设备机型',
    dataIndex: 'screen_height_dp',
  },
  {
    title: '权限状态',
    dataIndex: 'screen_width_dp',
  },
  {
    title: '关联手机号',
    dataIndex: 'current_screen',
  },
  {
    title: 'IP地址',
    dataIndex: 'previous_screen',
  },
  {
    title: '入库时间',
    dataIndex: 'device_ram',
  },
];

export const auditSearchFormSchema: FormSchema[] = [
  {
    field: 'type',
    label: '',
    labelWidth: 0,
    component: 'Select',
    componentProps: {
      style: { width: '150px' },
      placeholder: '请选择类型',
      options: [
        {
          label: 'ID',
          value: 'id',
        },
        {
          label: 'MAC地址',
          value: 'mac',
        },
        {
          label: 'IP地址',
          value: 'ip',
        },
        {
          label: '设备机型',
          value: '设备',
        },
      ],
    },
  },
  {
    field: 'country_id',
    label: '',
    labelWidth: 0,
    component: 'Input',
    componentProps: {
      placeholder: '请输入内容',
    },
  },
  {
    field: 'type',
    label: ' ',
    labelWidth: 20,
    component: 'Select',
    componentProps: {
      style: { width: '150px' },
      placeholder: '请选择国家',
      options: [
        {
          label: '国家',
          value: 'id',
        },
        {
          label: '印度',
          value: 'mac',
        },
        {
          label: '马来西亚',
          value: 'ip',
        },
      ],
    },
  },
  {
    field: 'type',
    label: ' ',
    labelWidth: 20,
    component: 'Select',
    componentProps: {
      style: { width: '150px' },
      placeholder: '请选择号码类型',
      options: [
        {
          label: '号码类型',
          value: 'id',
        },
        {
          label: '流量卡',
          value: 'mac',
        },
        {
          label: '电话卡',
          value: 'ip',
        },
      ],
    },
  },
  {
    field: 'type',
    label: ' ',
    labelWidth: 20,
    component: 'Select',
    componentProps: {
      style: { width: '150px' },
      placeholder: '请选择权限状态',
      options: [
        {
          label: '权限状态',
          value: 'id',
        },
        {
          label: '可用',
          value: 'mac',
        },
        {
          label: '不可用',
          value: 'ip',
        },
      ],
    },
  },
];

export const facilityFormSchema: FormSchema[] = [
  {
    field: 'isAdd',
    label: '',
    component: 'CyText',
    show: false,
  },
  {
    field: 'id',
    label: '',
    component: 'CyText',
    show: false,
  },
  {
    field: 'device_name',
    label: '手机代号',
    component: 'Input',
    required: true,
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'model_name',
    label: '手机名称',
    component: 'Input',
    required: true,
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'brand',
    label: '品牌',
    component: 'Input',
    required: true,
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'version',
    label: '版本',
    component: 'Input',
    required: true,
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'screen_height_dp',
    label: '屏幕高度',
    component: 'Input',
    required: true,
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'screen_diagonal_inches',
    label: '屏幕对焦线尺寸',
    component: 'Input',
    required: true,
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'screen_width_dp',
    label: '屏幕亮度',
    component: 'Input',
    required: true,
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'current_screen',
    label: '当前屏幕',
    component: 'Input',
    required: true,
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'previous_screen',
    label: '前页屏幕',
    component: 'Input',
    required: true,
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'device_ram',
    label: '当前可用内存',
    component: 'Input',
    required: true,
    componentProps: {
      placeholder: '请输入',
    },
  },
];
